package com.decoration.basic.service;

import com.decoration.basic.entity.DecPhaseBase;
import com.decoration.basic.entity.DecPhaseInf;
import com.decoration.basic.entity.JsonResult;
import com.decoration.basic.findCondition.DecFlowFindCondition;
import com.decoration.basic.findCondition.DecPhaseFindCondition;

import java.util.List;

public interface DecFlowService {

    List<DecFlowFindCondition> findAll(DecFlowFindCondition findCondition);

    List<DecPhaseBase> findTempleList();

    List<DecPhaseBase> findPhaseTempleList();
    List<DecPhaseBase> findMasterTempleList();

    Boolean addCtcFlow(DecFlowFindCondition findCondition);

    List<DecPhaseBase> findMasterTypeList();

    List<DecFlowFindCondition> findAllTemple(DecFlowFindCondition findCondition);
    DecFlowFindCondition findDecFlowbyId(DecFlowFindCondition findCondition);

    int addPhaseUser(DecFlowFindCondition findCondition);
    int insert(DecFlowFindCondition findCondition);

    int updateById(DecFlowFindCondition findCondition);

    int deleteById(String flowId);

    Integer getDecFlowInfSize();

    DecFlowFindCondition findById(String flowId);

    //获取项目阶段审批页面数据
    List<DecPhaseInf> getRelFlowPhaselist(DecPhaseFindCondition findCondition);

    //申请流程进度
    JsonResult applyRelFolw(DecPhaseInf findCondition);
}
